package file;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import java.util.TreeSet;

/**
 * @author ilongsay
 * @date: Create in 2020-03-30 18:07
 */
public class TestSort {
    public static void main(String[] args) {
        String[] abc = new String[]{"1","d","a","o"};
        String[] abc1 = new String[]{"d","o","a","1"};

        Set<String> stringSet1 = new TreeSet<>(Arrays.asList(abc));
        Set<String> stringSet = new TreeSet<>(Arrays.asList(abc1));

        for (String s : stringSet) {
            System.out.println(s);
        }
        System.out.println("====================");
        for (String s : stringSet1) {
            System.out.println(s);
        }

    }
}
